home *** CD-ROM | disk | FTP | other *** search
- ; * SOLITARE.WBT *
-
- MinutesToPlay = AskLine("Solitaire", "How many minutes do you want to play?", "")
- If WinExist("Solitaire") == @TRUE Then Goto activate
- RunZoom("sol.exe", "")
- Goto loaded
-
- :activate
- WinActivate("Solitaire")
- WinZoom("Solitaire")
-
- :loaded
- SendKey("!GC{RIGHT}{SP}~")
- WinTitle("Solitaire", "Solitaire (")
- SecondsToPlay = MinutesToPlay * 60
- SecondsAlreadyPlayed = 0
-
- :moretime
- SecondsRemaining = SecondsToPlay - SecondsAlreadyPlayed
- If WinExist("Solitaire (") == @FALSE Then Exit
- WinTitle("Solitaire (", "Solitaire (%SecondsRemaining% seconds left)")
- Delay(10)
- SecondsAlreadyPlayed = SecondsAlreadyPlayed + 10
- If SecondsAlreadyPlayed < SecondsToPlay Then Goto moretime
- Beep
-
- :TryAgain
- WinClose("Solitaire (")
- If WinExist("Solitaire (") == @TRUE Then Goto TryAgain ; Mouse might be down
- Message("Solitaire's Over", "Get back to work!")
- Exit
-